31f334
@@ -118,6 +118,7 @@
public static TStatus toTStatus(Exception e) {
       return ((HiveSQLException)e).toTStatus();
     }
     TStatus tStatus = new TStatus(TStatusCode.ERROR_STATUS);
+    tStatus.setErrorMessage(e.getMessage());
     return tStatus;
   }
 
